package com.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.to.SpuInfoTo;
import com.common.utils.PageUtils;
import com.gulimall.product.entity.SpuInfoEntity;
import com.gulimall.product.vo.ItemVo.SkuItemVo;
import com.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author Rookie-886
 * @email ${email}
 * @date 2021-03-14 16:30:53
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpu(SpuSaveVo spuSaveVo);

    boolean up(Long spuId);

    SkuItemVo getProductItem(Long skuId);

    SpuInfoTo getSpuInfoBySkuId(Long skuId);
}

